Clean up shadow-translate xen patches. Add abstractions
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sat, 28 Jan 2006 12:01:19 +0000 (13:01 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Sat, 28 Jan 2006 12:01:19 +0000 (13:01 +0100)
commit29dc4394b43f1f87731085c520da1704aa0afecd
tree08c3a30f410e3ba8b803b7aca1d38dc61dca7da8
parent901b108e279a9ca620a970f6400b8187932ad773
Clean up shadow-translate xen patches. Add abstractions
for adding/removing pages from a translated guest's
physmap. Define dummy functions so other architectures
will continue to build without errors.

Remove setting of XENFEAT_writable_mmu_structures. This
should set only if the hypervisor supports writable
mappings of all MMU structures (all page tables and
descriptor tables). If we want a mode where only PTEs
can be writable, we should add a feature flag for that
(but I don't think this is a useful mode to support).

TODO: The call to get the pfn hole should be a
XENMEM_ function, not another MMUEXT_OP (hopefully the
latter hypercall is not goign to grow any more as it's
gross enough already).

Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/domain.c
xen/common/grant_table.c
xen/common/kernel.c
xen/common/memory.c
xen/include/asm-x86/shadow.h
xen/include/xen/shadow.h